package com.lucweb.service.impl;

import com.lucweb.dao.CallDao;

import com.lucweb.entity.TaskCall;
import com.lucweb.service.CallService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("callService")
public class CallServiceImpl implements CallService {
    @Resource
    private CallDao callDao;


    @Override
    public String newcallTask() {

        return null;
    }

    @Override
    public void saveOrUpdate(TaskCall taskCall) {
        callDao.saveOrUpdate(taskCall);

    }

    @Override
    public TaskCall gettaskcallById(int taskId) {
        return this.callDao.getcallById(taskId);
    }

    @Override
    public boolean deletecalltask(int taskId) {
        callDao.deletecall(taskId);
        return true;
    }

    @Override
    public List<TaskCall> showcall() {
        return this.callDao.showCall();
    }

    @Override
    public int getmaxId() {
        return this.callDao.getmaxId();
    }

    @Override
    public List<TaskCall> showcallbycompany(String company) {
        return this.callDao.callList(company);
    }
}
